package com.wqz.dao;

import com.wqz.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleDao {
    /**
     * 通过集合查询(foreach的应用)
     * @param list
     * @return
     * @throws Exception
     */
    public List<Role> findListById(List<String> list) throws Exception;

    /**
     * 通过数组查询
     * @param arr
     * @return
     * @throws Exception
     */
    public List<Role> findArrayById(String[] arr) throws Exception;

    /**
     * 通过Map集合查询
     * @param map
     * @return
     * @throws Exception
     */
    public List<Role> findMapById(Map<String, Object> map) throws Exception;
}
